
Pod::Spec.new do |s|
  s.name             = "ShareSDK_Swift"
  s.version          = "1.0.0"
  s.summary          = "A sharesdk for swift"
  s.description      = <<-DESC
                       It is a marquee view used on iOS, which implement by Objective-C.
                       DESC
  s.homepage         = "https://git.oschina.net/bzp1024/ShareSDK_Swift"
  # s.screenshots      = "www.example.com/screenshots_1", "www.example.com/screenshots_2"
  s.license          = 'MIT'
  s.author           = { "B.E.N" => "benzhipeng1990@gmail.com" }
  s.source           = { :git => "https://git.oschina.net/bzp1024/ShareSDK_Swift.git",:tag => s.version,:submodules => true  }
  s.ios.deployment_target = '8.0'
  s.requires_arc = true
  s.source_files = 'ShareSDK_Swift/ShareSDKHeader.h'
  s.frameworks = 'Foundation', 'CoreGraphics', 'UIKit','CFNetwork','SystemConfiguration','MessageUI','CoreTelephony','ImageIO'
  s.library  = 'c++','sqlite3','z'


  s.subspec 'WeiBo' do |ss|
   ss.source_files = 'ShareSDK_Swift/WeiboSDK.h','ShareSDK_Swift/WeiboUser.h','ShareSDK_Swift/WBHttpRequest{*}.h','ShareSDK_Swift/WBSDK{*}.h'
   ss.ios.vendored_library = 'ShareSDK_Swift/libWeiboSDK.a'
   ss.resources = 'ShareSDK_Swift/WeiboSDK.bundle'
  end

  s.subspec 'WeiXin' do |ss|
   ss.source_files = 'ShareSDK_Swift/WXApi.h','ShareSDK_Swift/WXApiObject.h'
   ss.ios.vendored_library = 'ShareSDK_Swift/libWeChatSDK.a'
  end

  s.subspec 'QQ' do |ss|
   ss.vendored_frameworks = 'ShareSDK_Swift/TencentOpenAPI.framework'
   ss.resources = 'ShareSDK_Swift/TencentOpenApi_IOS_Bundle.bundle'
   ss.public_header_files = 'ShareSDK_Swift/TencentOpenAPI.framework/Headers/*.{h,m}'
   ss.source_files = 'ShareSDK_Swift/TencentOpenAPI.framework/Headers/*.{h,m}'
  end

  s.subspec 'Swift' do |ss|
   ss.dependency 'ShareSDK_Swift/QQ'
   ss.dependency 'ShareSDK_Swift/WeiBo'
   ss.dependency 'ShareSDK_Swift/WeiXin'
   ss.source_files = 'ShareSDK_Swift/ShareSDK.swift'
  end
end
